<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
<!--自动检测屏幕大小-->		
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">		
		
		<title></title>
		<link rel="stylesheet" type="text/css" href="js/bootstrap.css"/>
		<script src="js/jquery-3.2.0.min.js"></script>
		<script src="js/bootstrap.js"></script>
		<script src="js/docs.min.js"></script>
		
		<style type="text/css">
			.carousel-caption{
				background: #000;
				opacity: 0.5;
				width:100%;
				position: ;
				bottom: 0px;
				left: 0;
				
				padding: 0;
			}
			.carousel-caption p{
				text-align: left;
			}
		</style>
		
		
	</head>
	<body class="container">
		<h3 class="page-header text-center">幻灯片</h3>
		
		<div class="carousel slide" data-ride="carousel" id="mycarousel">
			<!--幻灯片内容区-->
			<div class="carousel-inner">
				<div class="item active">
					<img src="img/1.jpg"/>
					<div class="carousel-caption">
						<p>说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明</p>
						<p>说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明</p>
					</div>
				</div>
				
				<div class="item">
					<img src="img/2.jpg"/>
					<div class="carousel-caption">
						<p>说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明</p>
					</div>
				</div>
				
				<div class="item">
					<img src="img/3.jpg"/>
					<div class="carousel-caption">
						<p>说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明</p>
					</div>
				</div>
			</div>
			
			<!--指示灯-->
			<ol class="carousel-indicators">
				<li data-target="#mycarousel" data-slide-to="0" class="active"></li>
				<li data-target="#mycarousel" data-slide-to="1" ></li>
				<li data-target="#mycarousel" data-slide-to="2" ></li>
				
			</ol>
			
			<!--左右控制器-->
			<a href="#mycarousel" class="left carousel-control" data-slide='prev'>
				<span class="glyphicon glyphicon-chevron-left"></span>
			</a>
			<a href="#mycarousel" class="right carousel-control" data-slide='next'>
				<span class="glyphicon glyphicon-chevron-right"></span>
			</a>
			
		</div>
		
		
<!--鼠标移入移出时说明部分 ..carousel-caption 显示隐藏-->
		<script>
			$('.carousel-caption').hide();
			$('.carousel').hover(
				function(){
					$(this).find('.carousel-caption').slideDown();
				},
				function(){
					$(this).find('.carousel-caption').slideUp()
				}
			)
			
			
			
			//*********************************************修改幻灯片时间
			$('.carousel').carousel({  
			    interval: 3000  
			}); 
		</script>
		
		
		
		
	</body>
</html>
